package com.fudan.adse.service.impl;

import com.fudan.adse.domain.po.FilmType;
import com.fudan.adse.domain.po.FilmTypeExample;
import com.fudan.adse.mbg.mapper.FilmTypeMapper;
import com.fudan.adse.service.FilmTypeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class FilmTypeServiceImpl implements FilmTypeService {
    @Autowired
    private FilmTypeMapper filmTypeMapper;
    @Override
    public List<FilmType> getAllTypes() {
        FilmTypeExample example = new FilmTypeExample();
        example.createCriteria();
        return filmTypeMapper.selectByExample(example);
    }

}
